<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>登录界面</title>
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/style.css" />
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/body.css"/>
<script type="text/javascript" src="<%=request.getContextPath() %>/jquery-easyui-1.3.3/jquery.min.js"></script>s
<script type="text/javascript">
function login(){
	var userName=$("#username").val();
	var password=$("#password").val();
	if(userName==null||userName==""){
		alert("用户名不能为空！");
		return;
	}
	if(password==null||password==""){
		alert("密码不能为空！");
		return;
	}
	$("#adminlogin").submit();			
}
</script>
</head>
<body>
<div class="container">
	<section id="content">
		<form id=adminlogin  method=post name=adminlogin action="<%=request.getContextPath() %>/user/login">
			<h1>管理系统登录</h1>
			<div>
				<input type="text" placeholder="用户名" class=input value="${user.userName}" name="userName" id="username">
			</div>
			<div>
				<input type="password" placeholder="密码" class=input value="${user.password }" name="password" id="password"/>
			</div>
			<div style="">
				<input type="submit" value="登录" class="btn btn-primary" id="js-btn-login" onclick="javascript:login();return false;"/>
				<input type="reset" value="重置" class="btn btn-primary" id="js-btn-login" onclick="avascript:adminlogin.reset();return false;"/>
			</div>
		</form>
	</section>
</div>
<!-- container -->
</body>
</html>
<script type=text/javascript>
	if('${errorMsg}'!=''){
		alert('${errorMsg}');
	}
</script>